package com.ithehema;

import java.util.Scanner;

public class StringDemo01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一串字符串");
        String str1 = sc.next();
        String str2 = "abc";
        System.out.println(str1==str2);
        //以后只想比较字符串的内容，就必须要使用string里面的方法
    }
}
